import { Http } from '../../utils/http';

export function getIcoList({ token, status }) {
  let params = {};
  params['token'] = token;
  params['status'] = status;
  return Http.Get(`/api/crowd-funding/list`, params);
}

export function joinIco({ token, cfid, size }) {
  let params = {};
  params['token'] = token;
  params['cfid'] = cfid;
  params['size'] = size;
  return Http.Post(`/api/crowd-funding/join`, params);
}